Single-chip CMOS optical microspectrometer with sensor bus interface