CMOS-compatible optics