Competitive ion diffusion within grain boundary and grain interiors in polycrystalline electrodes with the inclusion of stress field