How to charge a capacitor without current