Electro-optic imaging of potential distributions in the quantum Hall regime