Sol–gel synthesis and anomalous magnetic behaviour of NiO nanoparticles