Analysis and Discussion of the Indirect Testing Method for the Losses of Permanent Magnet Synchronous Machines