Rotor Faults diagnosis in PMSMs Based on Branch Current Analysis and Machine Learning