Scattering of surface waves at a slab waveguide discontinuity