A substance consisting of a coil of wire with an iron core and is only magnetized when an electric current flows through it is called