Sol-gel glass waveguide and grating on silicon