Analyzing the optimal amount of polyimide foam stabilizer for specific formulations