Yellen ends China trip with stark warning