In situ XPS analysis of the electronic structure of silicon and titanium thin films exposed to low-pressure inductively-coupled RF plasma