The roles of native defects and transition metal additives in the dehydrogenation mechanism of Mg(AlH4)2