Shape memory polymer foams from emulsion templating