Spatial inhomogeneity in poly(acrylic acid) hydrogels