gold edges up from six-month lows as the dollar slips