China threatens Taiwan with war over US ties