Factors influencing the synthesis of tunable clay–polymer nanocomposites using bentonite and polyacrylamide