gold futures end lower as oil tumbles, dollar gains