Development of a weld inspection model. A fracture mechanics approach