The dynamics of learning with feedback alignment