Deposition of NiOx thin films by sol–gel technique