Boundary layer-mediated vorticity generation in currents over sloping bathymetry