Design and optimization of plants and components for the production of polyurethane foams