Gold futures end at 2-week low as dollar gets a boost