Compressive sensing spectrometry based on liquid crystal devices