Lithium battery models for battery charging and system loading