Charging capacitors in series