Accurate power diode model for general purpose digital simulation