Deposition and microstructural characterization of NiO thin films by a spray pyrolysis method