Hydration of a polyamide reverse-osmosis membrane