Water-polymer interactions and critical phenomena of swelling in inhomogeneous poly(acrylonitrile-acrylamide-acrylic acid) gels