Estimation of exchangeable graph models by stochastic blockmodel approximation