Rotational inelastic scattering of Li-N2 and Li-CO systems