Determination of organic compounds in soils, sediments, and sludges