Soil erosion in the boundary layer flow along a slope: a theoretical study