A Neural Network Model of Continual Learning with Cognitive Control