How to switch capacitors