Water transport in porous and non-porous membranes