Preparation and characterization of high‐temperature resistance polyimide foams