Initial relaxation of photoexcited carriers in GaAs and GaAs quantum wells under subpicosecond excitation