gold extends rise to 3-week high, as metals complex settles up