Rio Tinto may buy Glencore in an all-stock deal, companies say