Heat generation and a conservation law for chemical energy in Li-ion batteries. (1st October 2021)