Polymer gels for water control