Unsupervised hierarchical clustering using the learning dynamics of RBMs