operated by variations in magnetic field