Switch-Mode Power Supplies Spice Simulations and Practical Designs