capacitor discharge method