Magnetic properties of nanostructured CuFe2O4