Nanocrystalline Mg-based hydrides for hydrogen storage