Gold settles lower after posting gains over the last two sessions