In situ polymerization approach to functionalized MoS2/nylon-6 nanocomposites with enhanced mechanical properties and thermal stability