Implementing Salinity Gradient Energy at River Mouths