Additive Manufacturing of Metals: Fundamentals and Testing of 3D and 4D Printing