Simulation of polymer melt intercalation in layered nanocomposites