Carbon speciation in ash, residual waste and contaminated soil by thermal and chemical analyses.