How capacitor work as commutating capacitor?