Ambivalence and indifference in generalizations of structural balance