design and construction of a switch mode power supply