Modeling of Salinity Effects on Waterflooding of Petroleum Reservoirs