The Theory of the Fine Structure of the X-ray Absorption Spectrum