How did nationalism influence colonists living in European-controlled territories during the 19th century?