Direct Work Function Measurement by Gas Phase Photoelectron Spectroscopy and Its Application on PbS Nanoparticles