Modeling the salinity fluctuations in salt marsh lagoons