Scattering-matrix formulation of curved-wave multiple-scattering theory: Application to x-ray-absorption fine structure | Synapse