Operative and prognostic parameters associated with elective versus emergency surgery in a retrospective cohort of elderly patients