Magnetic properties of CoFe2O4 thin films prepared by a sol-gel method