Semiconductor drift detectors for X- and gamma-ray spectroscopy and imaging