A comparison between k-space and r-space representations for the description of spin-polarized slabs with the recursion method