Controlling electric field and electron density in a double-gated GaAs/AlGaAs quantum well