Inducing Probabilistic Context-Free Grammars for the Sequencing of Robot Movement Primitives