High voltage diodes with soft reverse recovery time