Dissociation energies and heats of formation of NH and NH+