A Double-mode Linear Imaging System for IC-compatible Microspectrometers in Visible Light