China warns Taiwan of "heavy cost" for U.N. vote