Generalized beam theories accounting for von Kármán nonlinear strains with application to buckling