Generalized finite element formulation for efficient first-order plastic hinge analysis