4D printing with smart materials and structures