Photoionization of Vibrationally Excited N2. II. Quenching by CO2 and N2O