design and construction of a microcontroller based single phase automatic changeover switch