How to open and short-circuit a capacitor