Description of grain-boundary diffusion in nanostructured materials for thin-film diffusion source