Modeling and optimization of salt and boron removal in reverse osmosis system