gold futures ends lower on dollar rally