Resonant inelastic x-ray scattering spectra for electrons in solids | Synapse