Modeling cognitive deficits following neurodegenerative diseases and traumatic brain injuries with deep convolutional neural networks