Ab initio calculation of the C K-edge XANES in Diamond : the effect of atomic vibrations