Theory of the far fine structure in x-ray absorption spectra