PSPICE simulation and design of a snubber circuit for power MOSFETs