Synthesis of NiO nanoparticles by sol-gel technique