When a metal surface is illuminated with light of appropriate frequency so as to cause photoelectric emission, when does the work function of the metal come into play? Is it the energy required to bring an electron to the metal surface or is it the energy required to liberate the electron from the metal surface?
Also, is it possible for any other substance( except metal) to emit photoelectrons?