China shares end higher on global stimulus hopes