Volatilization of metallic compounds from solutions in perchloric or sulfuric acid