Recurrent neural networks that learn multi-step visual routines with reinforcement learning