Brain-inspired replay for continual learning with artificial neural networks | Synapse