Assessment of cadmium-zinc-telluride detectors for hard-X-ray astronomy