Physics-Based Modeling of Degradation in Lithium Ion Batteries