Adsorption on single-crystal planes of tungsten: I. Nitrogen