Mean glucose during ICU admission is related to mortality by a U-shaped curve in surgical and medical patients: a retrospective cohort study