Radiative electron-attachment spectra of O3 and SO2