Formulation of a GBT-Based Finite Element to Analyse the Global Buckling Behaviour of Plane and Spatial Thin-Walled Frames