Development of a CZT drift ring detector for X and γ ray spectroscopy