How to discharge capacitors correctly