What did the people of Latin America use as a reason to justify their rebellions against Spain?