High-temperature polyimide nanofoams for microelectronic applications