threshold frequency and work function