Mg/Ag ratios induced in vitro cell adhesion and preliminary antibacterial properties of TiN on medical Ti-6Al-4V alloy by Mg and Ag implantation