Simulating a switch mode power supply with LTspice