Reaction between diamond and titanium for ohmic contact and metallization adhesion layers