How the legacy of monarchical empires shaped Britain, France, Spain, and the United States as they became liberal entities