An Introduction to Metamaterials and Nanophotonics