Carrefour SA has returned to profit in its first half with sales growth driven by a strong performance in emerging markets such as China.