Two-phonon Raman spectra of Si and GaP