The yuan has become the second main currency in trade for the first time, surpassing the euro.