Republics of the possible: state building in Latin America and Spain