PM Erdogan completes talks in Beijing, proceeds to Shanghai