A Test Procedure to Evaluate Magnets Thermal Time Constant of Permanent Magnet Machines