Risk factors for incident dementia after stroke and transient ischemic attack