A Magnetic Leakage Flux-Based Approach for Fault Diagnosis in Electrical Machines