UV sensors based on polycrystalline diamond