Gravity currents and the release of salt from an inverse estuary