A functional past: the uses of history in nineteenth-century Chile