An on-board system to diagnose faults in squirrel cage induction motors​