Stochastic Complexity and Generalization Error of a Restricted Boltzmann Machine in Bayesian Estimation