Fault diagnosis for substation based on optimizing the combination of fault-masses