Generation of nonequilibrium optical phonons in GaAs and their application in studying intervalley electron-phonon scattering