Method used in electrical engineering to determine the impedance in the excitation branch of a real transformer