A numerical model for the transport of salinity in estuaries