Radiation induced modification of trap occupancy in polycrystalline diamond detectors