Multiple-scattering theory of x-ray absorption : a review