The role of discourse in long-distance dependency formation