Between empire and globalization : an economic history of Spain