Derivation of formula for multiple capacitors in series