China, Pak vow to work for stability