Yellen hails 'productive' talks as Beijing visit ends