A polyimide foam stabilizer for improving the mechanical strength of the foam