Demographic and lifestyle predictors of survival in patients with esophageal or gastric cancers