which of the following laid the groupwork for the revolt that led to the independence form spain