Study on La–Mg based ternary system for hydrogen storage