Er... what?
I didn't realize that we are also including a gazillion other factors such as space-charge. Since when it this necessary? Are you working in a particle accelerator that produces more than 10 nC of charge within 10 ps? I do, and this is not very common for most particle accelerators, which means that under ordinary circumstances, space-charge effects right above the metal's surface is not a big deal.
And why are there ions? If the electrons are being emitted with barely eV scale energies, these are no sufficient to cause ionizations in the neutral gas. You need at least 100 eV or so to be able to sufficiently create a plasma, because that's when the ionization cross-section becomes substantial, at least for oxygen.
This thread is very confusing. It seems like there are several diverging issues being discussed at once, and they are all jumbled together. If you want to know about the factors involved in the "work function", then STICK to just that. Don't introduce external factors such as space-charge effects that simply adds to the confusion of what it is. The empirical measurement of the work function of a particular metal does NOT include such external factors.
Zz.