The role of cognitive impairment in desire for hastened death: a study of patients with advanced AIDS.