Tunable optical lattices in the near-field of a few-mode nanophotonic waveguide