Nanoscale magnesium as a hydrogen storage material