Surface tensions and the mass formula