Compact spectrometer system based on a gradient grating period guided-mode resonance filter.