A nanoscale friction investigation during the manipulation of nanoparticles in controlled environments