Shape Memory Polymer Foams Synthesized Using Glycerol and Hexanetriol for Enhanced Degradation Resistance