Comparison of the optical and structural properties of nickel oxide-based thin films obtained by chemical bath and sputtering