Thermal problem of curvilinear cracks in bonded dissimilar materials