Novel role of polymer–solvent and clay–solvent interaction parameters on the thermal, mechanical and optical properties of polymer nanocomposites