Structure and magnetic properties of Co-doped ZnO nanoparticles