which three continents surrounded the mediterranean sea?