Evaluation of effective electromagnetic properties in heterogeneous media