Dielectric tensor formulation of magnetic dichroism sum rules