Electromagnetic sum rules