Computational studies of the role of water in the formation and reaction of NOx species