Determinants of emergency department attendance among people with dementia approaching the end of life.