RNN Simulations of Grammaticality Judgments on Long-distance Dependencies