War and Nation: identity and the process of state-building in South America (1800-1840)