Determination of carbon in soil, sediment, sludge, and solid waste