Facile green deposition of nanostructured porous NiO thin film by spray coating