Mechanics of biomimetic 4D printed structures.