Polymer matrix composites with shape memory properties