Comparison of nanocomposites based on nylon 6 and nylon 66