A two-layer primitive equation model of an idealized Strait of Gibraltar connected to an eastern basin