Effect of Co doping on the structural, optical and magnetic properties of ZnO nanoparticles