Mechanics of Electrodes in Lithium-Ion Batteries