Digital CZT detector system for high flux energy-resolved X-ray imaging