Investigation of properties of Mg(n) clusters and their hydrogen storage mechanism: a study based on DFT and a global minimum optimization method.