Effect of pressure on bonding in MgO