Membrane-based pretreatment to mitigate variations in desalination plants.