the war that made an independent country in north America after 1783 was the