Gold futures settle at a nearly three-week high