gold inches higher as dollar holds near 2-month lows