The influence of interlayer on thermal stress in nanodiamond thin films