high voltage capacitor switching