Determination of the nature of different species produced by oxygen or sulfur dioxide adsorption on nickel oxide surface. Application to reaction mechanism in O2/NiO and O2/SO2/NiO systems