Preparation and performance of a novel polyimide foam