Spatial potential distribution in GaAs/AlGaAs heterostructures under quantum Hall conditions studied with the linear electro-optic effect