Use of time-harmonic FE analysis to compute rotor eddy-current losses in synchronous machines subject to distorted stator currents