Hydrothermal synthesis and magnetic properties of NiFe2O4 nanoparticles and nanorods