Investigation of (AlGa)As/GaAs quantum wells by optical and phototransport measurements