Automatic Phase Sequence Corrector with Prevention of Single Phasing