Effect of Porosity on Structure, Young's Modulus, and Thermal Conductivity of SiC Foams by Direct Foaming and Gelcasting