From which country did many European colonies in Central and South America gain their independence in the 1820s?