Preparation of pH- and salinity-responsive cellulose copolymer in ionic liquid