A regularization method for inverse heat transfer problems using dynamic Bayesian networks with variable structure