The north and south poles of a magnetic field produced by an electromagnet will switch when the direction of the BLANK changes.