Switch-Mode Power Supplies: SPICE Simulations and Practical Designs