Environmental factors and risk of delirium in geriatric patients: an observational study