Nanophotonics using optical near fields