Modeling of Capacity, Resistance, and Expansion of Lithium-ion Batteries as they Degrade: Linking Expansion and Degradation