Electro-optic sensor for measurement of DC fields in the presence of space charge