Effect of local solid reaction on diffusion-induced stress