Associations between pain and depression in nursing home patients at different stages of dementia