Influence of prestroke dementia on early and delayed mortality in stroke patients