Two-dimensional grating unit cell demultiplexer for thin-film optical waveguides