Several border territories were designated to the United Provinces after what?