Compact gas cell integrated with a linear variable optical filter