Cross sections for electron scattering on molecular oxygen and hydrogen