Taiwan loses ally Nicaragua to China