Energetics of phase separation in aqueous solutions of poly(N-isopropylacrylamide)