Analysis of swelling behavior of poly(methacrylamide-co-methacrylic acid) hydrogels and effect of synthesis conditions on water uptake