Electron emission processes in photocathodes and dynodes