Modeling diffusion–induced stress on two-phase lithiation in lithium-ion batteries