Modification of montmorillonite by quaternary polyesters