Gold settles lower as dollar taps 8-month high