The effect of nickel and cobalt on the aggregation of nitrogen in diamond