Effect of thermal misfit stress on crack deflection at planar interfaces in layered systems