Metaheuristic Optimization of Functionally Graded 2D and 3D 2 Discrete Structures Using the Red Fox Algorithm