Simulation of dynamic mechanical and viscoelastic behavior in polymer/clay nanocomposites