Solution of a bonded bimaterial problem of two interfaces subjected to different temperatures