HOW TO MEASURE CHARGE AND CAPACITY IN BATTERY SYSTEMS