X-ray microtomography studies of tanninderived organic and carbon foams