Thermoelasticity and plasticity of composites—I. Mean field theory