Electrochemically Driven Compositional Stresses in Lithiated Si and Other Thin Film Materials