Environmental control on Mediterranean salinity and δ18O