Synthesis, characterization and thermal history dependence of the polymorphic structure of nylon6/montmorillonite nanocomposites