Safety and feasibility of minimally invasive surgical interventions for esophageal and gastric cancer in the acute setting: a nationwide cohort study