Determination of the effective conductivity of heterogeneous media by Brownian motion simulation