Digital fast pulse shape and height analysis on cadmium-zinc-telluride arrays for high-flux energy-resolved X-ray imaging