Online Measurement of Battery Impedance Based on Second-Order Generalized Integrator and Equivalent Reactive Current Injection Technology