Thermal Stresses in a Solid Containing a Spherical Cavity and an External Crack