Cyclic heating of a layered plate with an interface flaw