Comparison of the physico-chemical properties of NiO thin films deposited by chemical bath deposition and by spray pyrolysis