Measurement of Rotor Thermal Time-Constant for Permanent Magnet Synchronous Machines