Probe measurements of the potential distribution in anisotropic semiconductor crystals and films