Separate roles for antigen recognition and lymph node inflammation in CD8+ memory T cell formation