Magnetic-amplifier circuits