On the Measurement of Structural Balance