Terahertz dynamics of excitons in GaAs/AlGaAs quantum wells