The thermodynamics of salt and fresh water mixing in estuaries