Sample Re-weighting for Replay-based Continual Learning in Neural Networks