Preparation of one-dimensional CoFe2O4 nanostructures and their magnetic properties