Carbon foams with high compressive strength derived from polyarylacetylene resin