Learning neural representations of complex motor behavior with recurrent neural networks