X-ray absorption near edge structure and first-principles spectral investigations of cationic disorder in MgAl2O4 induced by swift heavy ions.