Dynamic performances of UV photodetectors based on polycrystalline diamond