Investigation of hot-carrier relaxation in quantum well and bulk GaAs at high carrier densities