Chip-scale nanophotonic switch based on a waveguide-metamaterial coupling mechanism.