A Model-Based Strategy for Active Balancing and SoC and SoH Estimations of an Automotive Battery Management System modelling-05-00048