Gravar-mail: Brain-inspired replay for continual learning with artificial neural networks