Optimised contact structure for metal-diamond-metal UV detectors