Fault Diagnosis for Electric Power Systems and Electric Vehicles