Controlled mechano-chemical synthesis and properties of nanostructured hydrides in the Mg-Al-H and Mg-B-H systems