Text this: Non deterministic finite automata for power systems fault diagnostics