Atomic diffusion in semiconductors