How to measure the internal resistance and current of lithium battery