Ultra compact spectrometer using linear variable filters