Connection between Do and Q for self- and impurity diffusion