Text this: Sum rules for X-ray circular and linear dichroism based on complete magnetic multipole basis