A new method for the measurement of the double layer capacitance for the estimation of battery capacity