Nanostructured bulk magnesium compounds for hydrogen storage