Direct laser writing of thermally stabilized channel waveguides with Bragg gratings.