Nanophotonics and metamaterials