Effect of heating conditions on pore structure and performance of carbon foams