On electric-magnetic duality