Buckling analysis of beam-like structures