What were the geographic, social, political, and economic connections of the border states to both the north and the south?