Spice modeling and simulation of silicon-carbide power modules