Measurement of quasi-isentropic compressibility of helium and deuterium at pressures of 1500–2000 GPa