Effects of charge carrier trapping on polycrystalline PbO x-ray imaging detectors