Rigid polyurethane foams: A model of the foaming process