Elastic-plastic analysis of deformation induced by thermal stress in eutectic composites: I. theory