Understanding salt and contaminant removal by a pervaporative treatment process