Differentiating between dementia and depression