Progress in Additive Manufacturing: From 2D Printing to 4D Printing of Structural Materials and Functional Devices