charging and discharging a capacitor experiment