Design principles for 3D-printed thermally activated shape-morphing structures