Changes in ionization potentials of MgO and CaO films upon heating in air and vacuum investigated by metastable de-excitation spectroscopy