China has summoned a senior US envoy in protest after Washington announced it would sell two warships to Taiwan.