Determination of the double-layer capacity in the presence of a depolarizer