Melting curve of MgO from first-principles simulations