How did Napoleon's takeover of Europe influence the Haitian revolution and how did his invasion and occupation of Spain affect the Spanish colonies in South America?