Production and refining of precious metals (such as gold, silver platinum etc.) and alloys