Direct detectors for ionizing radiations, and methods for producing such detectors