A new flash method for measuring the toxicity of solid and colored samples