Detailed simulation of nitrogen dissociation in stagnation regions