Structural selection in implicit learning of artificial grammars