Shape-shifting structured lattices via multimaterial 4D printing