Morphological Analysis, Digital Modeling, and Mechanical Simulation of Carbon Foam