gold futures end sharply lower, as dollar rallies