Polarization phenomena in integrated riverse osmosis and membrane distillation for seawater desalination and waste water