Removal of heavy metals from acids