Calculated absolute cross section for the electron-impact ionization of CO2+ and N2+