Dependence of the energy signal of surface barrier detectors on the incident charge state of nitrogen projectiles