On a diffusion problem arising in nanophased thin films