Equilibrium Propagation for Memristor-Based Recurrent Neural Networks