Monte Carlo simulation of the effective thermal conductivity in two-phase material