Monitoring and Diagnosis of Faults in Interior Permanent Magnet Motors Using Discrete Wavelet Transform