Determination of effective elastic properties and thermal residual stresses in fiber-reinforced composites by the boundary element method