War and independence in Spanish America, 1810-26