Co doped ZnO nanowires as visible light photocatalysts