Polycrystalline diamond detectors with three-dimensional electrodes