Reverse osmosis and ultrafiltration