Spectral measurement using IC-compatible linear variable optical filter