How to Discharge Capacitor safely with resistor