Predictors of self- and caregiver-rated quality of life for people with dementia living in the community and in nursing homes in northern Taiwan