Minimum generation error criterion for tree-based clustering of context dependent HMMs