GDFE: Geometry-Driven Finite Element for Four-Dimensional Printing