Work function measurements by the field emission retarding potential method