Stochastic Block Models are a Discrete Surface Tension