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