The rheology and thermodynamics of polymer nanocomposites