Scattering of shelf waves by a spatially varying mean current