Integrated multi-pixel near-infrared spectral sensor