Optics of two-phase composites