Multiple-scattering calculations of x-ray-absorption spectra | Synapse