Electronic properties and transistors of the NbS2–MoS2–NbS2 NR heterostructure