How to measure dynamic voltage and current of lithium battery