Temperature distribution and heat flow around a crack of arbitrary orientation in a functionally graded medium