Self-folding with shape memory composites