Measuring the work function at a nanobelt tip and at a nanoparticle surface