Co3O4–C core–shell nanowire array as an advanced anode material for lithium ion batteries