Optimization and treatment of wastewater of crude oil desalting unit and prediction of scale formation