A 3D planet boundary layer scheme for the representation of dispersion processes in sub-kilometer horizontally non-homogeneous flows