Boundary-Layer Effects in Reverse Osmosis