design and construction of automatic changeover for three phases