A new finite-element technique for simulating the voltage control of a transformer