Foaming of Miscible and Immiscible Polymer Blends