Structural, optoelectronic and electrochemical properties of nickel oxide films