What were some key contributing factors to the rise of independence movements in Latin America during the 19th century?