Analysis of lithium battery models