Determinants of incident dementia in different old age groups: results of the prospective AgeCoDe/AgeQualiDe study