Lithium battery impedance fitting method