Shape memory epoxy foams by solid-state foaming