Analyzing the weight dynamics of recurrent learning algorithms