Real-Time Fault Detection and Reconfiguration of a Three-Phase Electric Motor Drive