The assessment of risk factors for postoperative delirium using cubic spline curves in gastroenterological surgery