gold settles at a nearly three-week high