Spin relaxation time, spin dephasing time and ensemble spin dephasing time in n-type GaAs quantum wells