Ab initio calculations of doublet states of NH