Dynamic compression of hydrogen isotopes at megabar pressures