Stress induced by diffusion and local chemical reaction in spherical composition-gradient electrodes