Charge state dependence of the energy loss of slow nitrogen ions