Gold erases gains, settles lower as dollar index trades near 13-year high