Spectral properties of the two-photon absorption and emission process