Ultrafast Scattering and Energy Relaxation of Optically Excited Carriers in GaAs and AlGaAs