Electronic structure, magnetic and structural properties of Ni doped ZnO nanoparticles