Dynamic Compression of Rare Gases and Deuterium at High Pressures