How to switch capacitors with thyristors