Optical detection of an electric field in a GaAs/AlGaAs n-i-n heterostructure with double quantum wells