Surface damage of metallic implants due to mechanical loading and chemical reactions