When a wire moves through a magnetic field, an electric current is produced in the wire. Why does this phenomenon occur?