Reduction and reconstruction of CO3O4 nanocubes upon carbon deposition