General Theory of Electron Emission from Metals