Diffusion effect of intermetallic layers on adhesion and mechanical properties of electrical contacts