Monolithic integration of photonic stack onto CMOS imager for absorption spectroscopy