How to accurately test the capacity of lead-acid batteries