Bayesian model selection of Stochastic Blockmodels for random graphs