Gold settles at a nearly 3-week high as dollar drops