Electrochemical Reactions in Li-Ion Battery Electrodes and Their Interaction with Mechanical Stresses: Size Effects, Phase Segregation, and Crack Propagation