Elastic Scattering of Carbon and Nitrogen Ions