Inelastic local buckling of tubes for combined walls and pipelines