Inverter Diagnosis Based on Fault Model Analysis