Dementia, depression and life satisfaction in nursing homes