High-voltage switching diode