Salinity Gradient Energy from Expansion and Contraction of Poly(allylamine hydrochloride) Hydrogels.