Methods for measuring the capacity of capacitors