Buckling of columns of the variable cross-sections