Functional Polymer Foams: Green Fabrication Methods, Performance and Applications