Accurate measurements of battery capacity Li ion IV logging