Stress singularities in a bimaterial joint with inhomogeneous temperature distribution