Calculation of leakage inductance in transformer windings