by determining the work function in vacuum