The role of gateways in the evolution of temperature and salinity of semi-enclosed basins: An oceanic box model for the Miocene Mediterranean Sea and Paratethys