Optical and electrical properties of NiO and Cu-doped NiO thin films synthesized by spray pyrolysis