Analysis of XPS spectra of Fe2+ and Fe3+ ions in oxide materials