Optical spectroscopy of GaAsGaAlAs quantum wells under an external electric field