Generation of mesoscale flows over the shelf and slope by shelf wave scattering in the presence of a stable, sheared mean current