Modeling and State Estimation of Lithium-Ion Battery Packs for Application in Battery Management Systems