Spin dynamics in doped and intrinsic GaAs quantum wells