The densities of compounds at high pressures and the state of the Earth's interior