Measurement of work function in a cylindrical mirror electron spectrometer and application to characterization of thermionic electron emitters