Vibrational relaxation and electronic mutation of metastable nitrogen molecules generated by nitrogen atom recombination on cobalt and nickel