Energy loss of aligned nitrogen molecular ions in an electron gas