Trends and Control in the Nitridation of Transition-Metal Surfaces