State-to-state and direct molecular simulation study of energy transfer and dissociation in nitrogen mixtures