Application of a complex potential to the interpretation of Xanes spectra the case of Na K-edge in NaCl