define diode model and remove RC snubber in examples