A global perspective on the nature and evolution of nationalism, from the early modern era to the present