[Ifeffit] Calculation of a XANES spectrum