An expert system for substation fault diagnosis and alarm pr