Mathematical simulation of tidal time-averages of salinity and velocity profiles in estuaries