Text this: Dual-loop integration framework for model-based system design and reliability analysis using Bayesian networks