How did american colonists gain their independence?