Energy resolution of a silicon detector with the RX64 ASIC designed for X-ray imaging