X-ray Absorption Spectroscopy: characterisation of thermal and structural disorder