Mixed metals miner South32 has returned to profit on the back of strong operating margins across its global commodities portfolio.