Desolvation and dehydrogenation of solvated magnesium salts of dodecahydrododecaborate: relationship between structure and thermal decomposition.