The phase diagrams of beryllium and magnesium oxide at megabar pressures