Magnetic and optical properties of electrodeposited nanospherical copper doped nickel oxide thin films