Adsorption sites of hydrogen atom on pure and Mg-doped multi-walled carbon nanotubes