Electrical Properties of Grain Boundaries in Low Doped Polycrystalline Materials with Applications to Detectors