Electrical and photoresponse properties of Co3O4 nanowires