Which of the following was not an important challenge facing Latin America immediately after independence?