gold ends with a nearly $6 weekly gain