Study of two-body and three-body channels for the reaction of metastable helium atoms with nitrogen