Anfonwch hwn fel neges destun: End-to-end design of multicolor scintillators for enhanced energy resolution in X-ray imaging