Temperature phase transition in charged poly(N-isopropylmethacrylamide) hydrogels in water and aqueous NaCl solutions