Effective thermal conductivity of three-component composites containing spherical capsules