The emergence of new states, borders and minorities