Sum Rules in EMCD and XMCD