Prediction of the failure pressure for complex corrosion defects