Deterministic reshaping of single-photon spectra using cross-phase modulation | Synapse