One-dimensional silicon nitride grating refractive index sensor suitable for integration with CMOS detectors