Time series studies: the value of the electroencephalogram in aging, dementia and stroke