Pressure Shifts and Electron Scattering in Atomic and Molecular Gases