Effects of processing parameters on the preparation of nylon 6 nanocomposites