Cognitive reserve in stroke and traumatic brain injury patients