Thermal stresses in bi-coated structures