A quasi-3D model of wind-driven circulation in enclosed basins