Crystal structure and thermodynamic stability of the lithium alanates LiAlH 4 and Li 3 AlH 6