Design and calibration of leak detection systems by thermal hydraulics and fracture mechanics analyses