Preparation and characterization of NiFe2O4 nanoparticles