Biofunctionization of biodegradable magnesium alloy to improve the in vitro corrosion resistance and biocompatibility