Crystal field effects in the adsorption and desorption of oxygen at a nickel oxide surface