Advanced Fault Detection Methods for Permanent Magnets Synchronous Machines