How to measure the current and capacity of lithium battery