gibbs sampling in RBM