Optimization of the structure of integral skin foams for maximal flexural properties