Time evolution of temperature and thermal stresses in a triple layered structure of various mechanical properties