first latin american country to gain independence from spain