Laminar dispersion at high Péclet numbers in finite-length channels: Effects of the near-wall velocity profile and connection with the generalized Leveque problem