Synthesis, characterization, and selective dye adsorption by pH- and ion-sensitive polyelectrolyte galactomannan-based hydrogels.