A Dynamic Model of Nickel-Zinc Batteries