Text this: High-throughput phase-field simulations and machine learning of resistive switching in resistive random-access memory