Design and operation of saturable reactors and magnetic amplifiers