Radiation hardness of three-dimensional polycrystalline diamond detectors