Effective conductivity tensor of ordered and disordered composite media: exact relations and numerical simulations