A simple criterion for gyre formation by the surface outflow from a strait, with application to the Alboran Sea