Transition from initial global bending to progressive buckling of tubes loaded statically and dynamically