Cold and ultracold nh-nh collisions in magnetic fields