Residual bending capacity for pipelines with corrosion defects