Pixel array detectors based on CVD-Diamond for UV and x-ray detection