Effect of interface undulations on the thermal fatigue of thin films and scales on metal substrates