CMOS Fabrication-Compatible Bragg Grating Devices and Applications