Residual stresses and debonding of diamond films on titanium alloy substrates