On the problem of a coated elastic layer subjected to residual thermal stress