Stability of Coalition Structures and the Principle of Optimal Partitioning