Pain and hospice care in nursing home residents with dementia and terminal cancer