Universal Short-Circuit And Open-Circuit Fault Detection For An Inverter