Structures and optical properties of Zn1−xNixO nanoparticles by coprecipitation method