4D printed anisotropic structures with tailored mechanical behaviors and shape memory effects