The plane problem of thermal conductivity and thermal elasticity for a finite piecewise uniform body with cracks