Electro-optical properties of diamond thin films as UV photodetectors