Optical Forces in Nanophotonic Structures