Synthesis and Characterization of Flexible and Rigid Polyurethane Foam