Introduction to nanophotonics