First principles study on stability and hydrogen adsorption properties of Mg/Ti interface.