What happens to the magnetic field created by an electromagnet when the wire is disconnected from the source of energy?