Why was nationalism important in the 19th century?