CMOS X-rays microdetector based on scintillating light guides