Global shares rise on hopes of US debt ceiling deal, gold eases