lithium ion battery charging current calculation