Fast calculation of carrier harmonic iron losses caused by pulse width modulation in interior permanent magnet synchronous motors