Text this: A flexible and fast digital twin for RRAM systems applied for training resilient neural networks.