First-principles predictions of potential hydrogen storage materials : nanosized Ti(core)/Mg(shell) hydrides