Particle size effect on the magnetic properties of NiO nanoparticles prepared by a precipitation method