An efficient digital X-ray imaging system with high spatial resolution and robust energy sensitivity