Atomic thermal vibrations in semiconductors: ab initio calculations and EXAFS measurements