Laboratory measurements of the association rate coefficients of NO+, O+2, N+, and N+2 ions with N2 and CO2 at temperatures between 100 k and 400 k