Thioarsenate formation upon dissolution of orpiment and arsenopyrite.