Diffusion processes in germanium and silicon films grown on Si3N4 substrates