Experiments shed light on pressure-driven ionization in giant planets and stars