In vitro and in vivo characterization of novel calcium phosphate and magnesium (CaP-Mg) bilayer coated titanium for implantation