Chemical analysis of plants and soils