Monte Carlo and analytical modeling of the effects of grain boundaries on diffusion kinetics