How to check the discharge of capacitors