Effective Magnetic and Electric Response of Composite Materials