Storage of hydrogen in single-walled carbon nanotubes