Assessment of sedation by automated pupillometry in critically ill patients: a prospective observational study.