The use of styrenic copolymers to generate polyimide nanofoams