Trump optimistic on trade, North Korea after China talks