Sum rules and symmetries in nuclear physics