Investigation of the electric field distribution in x-ray detectors by Pockels effect