Sum rules and physical bounds in electromagnetic theory