Soft confinement of water in graphene-oxide membranes