how does it take to discharge a capacitor rc time circuit