Gold prices settle at a nearly 3-week high