Estimation in a binomial stochastic blockmodel for a weighted graph by a variational expectation maximization algorithm