Epitaxial growth of metal-semiconductor van der Waals heterostructures NbS2/MoS2 with enhanced performance of transistors and photodetectors