Design, Development and Simulation of a Microcontroller Based Automatic Electrical Mains Changeover System