First principles study of a heavily nitrogen-doped (10,0) carbon nanotube