Synthesis and hydrogen storage properties of core–shell structured binary Mg@Ti and ternary Mg@Ti@Ni composites