Controllable synthesis and magnetic investigation of ZnO: Co nanowires and nanotubes