A Theoretical Study of Photofield Emission From Metals Incorporating the Spatially Dependent Photon Fields