The origin of the western Mediterranean basin