THE EFFECT OF GAS ADSORPTION ON THE ELECTRONIC PROPERTIES OF MgO AND Ca-DOPED MgO