Optical and electrochemical properties of Cu-doped NiO films prepared by electrochemical deposition