X-ray photoelectron spectroscopy and Rutherford backscattering spectrometry study of anion incorporation in anodically grown films