Fault Detection of PM Synchronous Motor Via Modulating Functions