A commutator with integrated capacitors