On the influence of nonuniform magnetic fields on ferromagnetic colloidal sols