CD8+ T cell metabolism in infection and cancer