A wavelet-based technique to detect stator faults in inverter-fed induction motors