Refining gold to remove impurities