Finite element simulations of the laser-heated diamond-anvil cell