The empire of circumstances. The spanish american independence and the spanish liberal revolution