Very narrow spectral filters with multilayered grating-waveguide structures