How to calculate the potential of capacitors in series