Structural analysis by moment distribution