Modeling, Parametrization, And Diagnostics For Lithium-Ion Batteries With Automotive Applications