A numerical model coupling diffusion and grain growth in nanocrystalline materials