Magnetophoresis and diffusion of colloidal particles in a thin layer of magnetic fluids