Buckling of variable cross-sections columns in the braced and sway plane frames