The Kingdoms of England and Scotland were unified in 1707 creating the Kingdom of Great Britain. After which war did most of Ireland join the United Kingdom