Responsive polymer conformation and resulting permeability of clay–polymer nanocomposites