Empirical Bayes Estimation for the Stochastic Blockmodel